package edu.yuhf.web.filter;

import java.io.IOException;
import javax.servlet.DispatcherType;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebFilter;

import org.apache.log4j.Logger;


@WebFilter(dispatcherTypes = {DispatcherType.REQUEST,DispatcherType.FORWARD},
	urlPatterns = { "/user.servlet?param=login" })
public class UserBehaviorFilter implements Filter {

	private static Logger log=Logger.getLogger(UserBehaviorFilter.class);
	
	public void destroy() {
	}


	public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
		log.debug("user behavior filter before...");
		chain.doFilter(request, response);
		log.debug("user behavior filter after...");
	}


	public void init(FilterConfig fConfig) throws ServletException {
	}

}
